package temp

type Address struct {

}

//
//func (a *Address) AddressSelection(csrf string) (resp *resty.Response, document *goquery.Document, err error) {
//	headers := map[string]string{
//		"anti-csrftoken-a2z": csrf,
//		"X-Requested-With": "XMLHttpRequest",
//		"referer": global.BM_HTTPCLIENT.BaseURL,
//	}
//
//	query := map[string]string{
//		"deviceType": "desktop",
//		"pageType": "Gateway",
//		"storeContext": "NoStoreName",
//		"actionSource": "desktop-modal",
//	}
//
//	return request(GET, "/gp/glow/get-address-selections.html", headers, nil, query)
//}
//
//func (a *Address) ChangeAddress(resp *resty.Response) {
//	formData := map[string]string{
//		"locationType": "LOCATION_INPUT",
//		"zipCode": "00601",
//		"storeContext": "generic",
//		"deviceType": "web",
//		"pageType": "Gateway",
//		"actionSource": "glow",
//		"almBrandId": "undefined",
//	}
//
//	reg, _ := regexp.Compile(`CSRF_TOKEN\s*:\s*"([^"]+)"`)
//	matcher := reg.FindStringSubmatch(resp.String())
//	if len(matcher) > 0 {
//		_, _, _ = request(POST,
//			"/gp/delivery/ajax/address-change.html",
//			map[string]string {
//				"anti-csrftoken-a2z": matcher[1],
//				"X-Requested-With": "XMLHttpRequest",
//				"referer": global.BM_HTTPCLIENT.BaseURL,
//			},
//			formData,
//			nil)
//
//	}
//}